package org.raymond.iworks.study.basic.feature;

public class JDK16Test {
    public static void main(String[] args) {
        var test = new JDK16Test();
        test.patternMatchTest();
        test.recordTest();
    }

    public void patternMatchTest(){
        Object hello = "";
        if(hello instanceof String s){
            System.out.printf("%s", s.isBlank());
        }
    }

    public void recordTest(){
        Address ad = new Address("street 1", "city 2");
        System.out.printf("ad:%s", ad.toString());
    }
}

record Address(String address, String city){
}
